import { Column, Entity } from 'typeorm';
import { BaseEntity } from '@cool-midway/core';

@Entity('dr_expert_commission') // 可以指定表名，不指定会根据类名自己生成
export class ExpertCommissionEntity extends BaseEntity {
  @Column()
  order_number: string = null;

  @Column({
    nullable: false,
  })
  product_id: string;

  @Column({
    nullable: false,
    type: 'decimal',
    precision: 20,
    scale: 10,
  })
  commission: number;

  @Column({
    nullable: false,
  })
  store_name: string;

  @Column({
    nullable: false,
    type: 'date',
  })
  data_date: string;
}
